@import './base.less';
body{
    background-color: #fafafa;
}

//top
.top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 1.866667vw 0.8vw;
    width: 100%;
    height: 11.733333vw;
    background-color: #fff;
    .back {
      display: block;
      width: 7.2vw;
      height: 7.2vw;
      text-align: center;
      font-size: 5.333333vw;
    }
    .title {
      margin-right: 4vw;
      flex: 1;
      font-size: 4.266667vw;
      font-weight: 700;
      text-align: center;
    }
  }

// 轮播
.diy-banner{
  position: relative;
    margin-top: 11.733333vw;
    width: 100%;
    height: 100vw;
    .swiper-pagination-bullet {
        background-color: rgba(0, 0, 0,0.3);
        opacity: 1;
      }
      .swiper-pagination-bullet-active {
        background-color: black;
      }
      //图片个数
      .picnum{
          position: absolute;
          right: 4.8vw;
          bottom: 9.6vw;
          z-index: 900;
          padding: 0.533333vw;
          width: 10.4vw;
          height: 5.066667vw;
          font-size: 3.466667vw;
          text-align: center;
          color: #fff;
          background: rgba(0,0,0,.363);
          border-radius: 6.666667vw;
      }
}

//商品名称和价格
.goodsname{
  margin-top: 3.2vw;
  padding: 3.2vw 4vw;
  width: 100%;
  height: 25.333333vw;
  background-color: #fff;
  .price{
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.666667vw;
    width: 92vw;
    height: 5.6vw;
    .left{
      width: 34.666667vw;
      height: 5.6vw;
      font-size: 3.466667vw;
      color: #fa2209;
      .yuan{
        margin-right: 1.866667vw;
        font-size: 5.6vw;
      }
      .discount{
        text-decoration: line-through;
        color: #959595;
      }
    }
    .right{
      padding-top: 1.333333vw;
      width: 22.666667vw;
      height: 3.2vw;
      .tex{
        font-size: 3.2vw;
        color: #959595;
      }
    }
  }
  .tradename{
    display: flex;
    align-items: center;
    width: 92vw;
    height: 10.666667vw;
    font-size: 4vw;
  }
}

// 七天无理由退货
.return{
  display: flex;
  align-items: center;
  padding: 3.2vw 4vw;
  width: 100%;
  height: 13.066667vw;
  .left{
    margin-left: -1.866667vw;
    width: 90.4vw;
    height: 6.666667vw;
    .seven{
      margin: 1.066667vw 1.866667vw;
      float: left;
      width: 29.333333vw;
      height: 4.533333vw;
      font-size: 3.466667vw;
      .iconfont{
        font-size: 3.466667vw;
        color: #fa2209;
      }
    }
  }
  .right{
    .iconfont{
      font-size: 3.466667vw;
      color: #999;
    }
  }
}

//商品评价
.comments{
  padding: 2.666667vw 4vw;
  width: 100%;
  // height: 63.2vw;
  background-color: #fff;
  // 查看更多一块
  .title{
    display: flex;
    margin-bottom: 3.2vw;
    width: 92vw;
    height: 5.066667vw;
    font-size: 3.733333vw;
    .left{
      width: 74.4vw;
      height: 5.066667vw;
      span{
        margin: 0 0.533333vw;
      }
    }
    .right{
      width: 17.6vw;
      height: 5.066667vw;
      .more{
        font-size: 3.2vw;
        color: #999;
      }
      .iconfont{
        font-size: 2.933333vw;
        color: #999;
      }
    }
  }
  // 评论主体
  .talk{
    width: 92vw;
    .comment-item{
      margin-bottom: 1.333333vw;
      padding: 1.866667vw 0.533333vw;
      width: 92vw;
      height: 24.266667vw;
      border-bottom: 0.133333vw solid #f5f5f5;
      .head{
        display: flex;
        align-items: center;
        margin-bottom: 1.333333vw;
        width: 90.933333vw;
        height: 6.666667vw;
        .username{
          // width: 20.8vw;
          height: 6.666667vw;
          img{
            width: 6.666667vw;
            height: 6.666667vw;
            border-radius: 50%;
          }
          span{
            font-size: 2.666667vw;
          }
        }
        .star-rating{
          display: inline-flex;
          align-items: center;
          width: 26.666667vw;
          height: 5.066667vw;
          .star-item{
            width: 5.333333vw;
            height: 5.066667vw;
            color: orange;
          }
        }
      }
    }
    .text{
      margin: 2.133333vw 0;
      width: 90.933333vw;
      height: 5.066667vw;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .date {
      margin-top: 1.333333vw;
      width: 90.933333vw ;
      height: 4.266667vw;
      font-size: 3.2vw;
      color: #999;
    }
  }
} 

// 商品描述
.information_details {
  margin-top: 3.3333vw;
  background-color: #fff;
  padding-bottom: 48.5px;

  h3 {
    padding: 3.4667vw 4vw;
    font-size: 3.7333vw;
    color: rgb(48, 49, 51);
    font-weight: 400;
  }

  .information_pic {

    img {
      width: 99vw !important;
    }
  }
}

// 底部区域
.information_footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  height: 12.9333vw;
  background-color: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;

  .footer_index {
    padding: 1.3333vw;
    color: rgb(48, 49, 51);
    line-height: 1;
    display: flex;

    a {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;

      .iconfont {
        font-size: 5.8667vw;
      }

      p {
        margin-top: 0.6667vw;
        font-size: 2.9333vw;
      }
    }
  }
  .footer_cart {
    position: relative;
    padding: 1.3333vw;
    color: rgb(48, 49, 51);
    line-height: 1;
    display: flex;

    a {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;

      .iconfont {
        font-size: 5.8667vw;
      }

      p {
        margin-top: 0.6667vw;
        font-size: 2.9333vw;
      }

      .count {
        position: absolute;
        right: 1.3333vw;
        top: 0.4vw;
        width: 4.2667vw;
        height: 4.2667vw;
        background-color: rgb(238, 10, 36);
        border-radius: 50%;
        text-align: center;
        line-height: 4.2667vw;
        color: #fff;
        font-size: 1.6vw;
      }
    }
  }

  .footer_add {
    width: 32.8vw;
    height: 9.6vw;
    background-image: linear-gradient(90deg, #ffa600, #fb0);
    border-radius: 4.8vw;
    display: flex;

    a {
      width: 100%;
      line-height: 9.6vw;
      text-align: center;
      color: #fff;
      font-size: 3.7333vw;
    }
  }

  .footer_buy {
    width: 32.8vw;
    height: 9.6vw;
    background-image: linear-gradient(90deg, rgb(249, 33, 28), rgb(255, 99, 53));
    border-radius: 4.8vw;
    display: flex;

    a {
      width: 100%;
      line-height: 9.6vw;
      text-align: center;
      color: #fff;
      font-size: 3.7333vw;
    }
  }
}

// 点击添加购物车弹框
.layer {
  position: fixed;
  left: 0;
  bottom: -64vw; //要显示就设置为0
  z-index: 1000;
  width: 100%;
  height: 64vw;
  background-color: #fff;
  border-radius: 2.6667vw 2.6667vw 0 0;
  overflow: hidden;
  transition: 0.5s;

  .wrapper {
    height: 48vw;
    padding: 4vw 3.2vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .goodstop {
      width: 100%;
      height: 24vw;
      display: flex;
      justify-content: space-between;

      .topLeft {
        img {
          width: 24vw;
          height: 24vw;
        }
      }

      .top-right {
        width: 69.3333vw;
        height: 24vw;
        padding: 0 4.5333vw 1.3333vw 3.7333vw;
        box-sizing: border-box;
        padding-top: 6.6667vw;

        .add-price {
          margin-bottom: 2.666667vw;
          color: rgb(254, 86, 10);
          font-size: 3.7333vw;

          i {
            font-size: 6.4vw;
          }
        }

        .add-inventory {
          color: rgb(82, 82, 82);
          font-size: 3.2vw;
        }
      }
    }

    .add-bottom {
      width: 100%;
      height: 9.3333vw;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .bottom-txt {
        color: rgb(48, 49, 51);
        font-size: 3.7333vw;
      }

      .bottom-count {
        width: 32vw;
        display: flex;
        justify-content: space-between;
        text-align: center;
        line-height: 6.6667vw;

        .reduce {
          width: 8vw;
          height: 6.6667vw;
          background-color: rgb(242, 243, 245);
          border: none;
        }

        .num {
          width: 10.6667vw;
          height: 6.6667vw;
          background-color: rgb(242, 243, 245);
        }

        .add {
          width: 8vw;
          height: 6.6667vw;
          background-color: rgb(242, 243, 245);
          border: none;
        }

        .active {
          background-color: rgb(247, 248, 250);
        }
      }
    }
  }

  .shopp-bottom {
    display: flex;
    align-items: center;
    padding: 0 3.4667vw;
    height: 16vw;
    justify-content: center;

    a {
      width: 88.5333vw;
      height: 10.6667vw;
      border-radius: 5.3333vw;
      overflow: hidden;
      background-color: rgb(255, 148, 2);
      text-align: center;
      line-height: 10.6667vw;
      font-size: 3.7333vw;
      color: #fff;
    }
  }
  // 没有库存时显示
  .no-bottom {
    display: flex;
    align-items: center;
    padding: 0 3.4667vw;
    height: 16vw;
    justify-content: center;

    a {
      width: 88.5333vw;
      height: 10.6667vw;
      border-radius: 5.3333vw;
      overflow: hidden;
      background-color: #ccc;
      text-align: center;
      line-height: 10.6667vw;
      font-size: 3.7333vw;
      color: #fff;
    }
  }

  .icon-bangzhu1 {
    position: absolute;
    top: 4vw;
    right: 3.2vw;
    font-size: 5.3333vw;
    color: rgb(48, 49, 51);
  }
}

// 成功提式
.tips {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  height: 10.6667vw;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1000;
  text-align: center;
  line-height: 10.6667vw;
  font-size: 3.4667vw;
  border-radius: 2.6667vw;
  color: #fff;
  display: none;
  transition: 1s;
}

// 遮罩
.information_mask {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, .5);
  transition: 0.5s;
  opacity: 0;
}
// 遮罩显示
.mask {
  opacity: 1;
  z-index: 980;
}
  